﻿using NExt.Core.Model.Base;

namespace NExt
{
    public class ProgressBar : ProgressBar<ProgressBarEvents>
    {
    }

    public abstract class ProgressBar<TEvents>: BoxComponent<TEvents>
        where TEvents : ProgressBarEvents, new()
    {
        public string text { get; set; }
        public object textEl { get; set; }
        public float? value { get; set; }
    }

    public class ProgressBarEvents : BoxComponentEvents
    {
        public IScript update { get; set; }
    }
}
